
PWD = $(shell pwd)

LIBNAME = $(shell basename ${PWD})
CFLAGS += -I$(shell dirname ${PWD}) -I ../lib

cc = gcc

all:clean
	@${cc} ${CFLAGS} -c *.c 
	ar -rcs  lib${LIBNAME}.a *.o

clean:
	@rm -f *.o
	@rm -f *.a
